<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-productName" class="form-control " rows="5" name="row[productName]" cols="50">{$row.productName|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('图片')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-cover" class="form-control" size="50" name="row[cover]" type="textarea" value="{$row.cover|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-cover" class="btn btn-danger faupload" data-input-id="c-cover" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-cover"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-cover" class="btn btn-primary fachoose" data-input-id="c-cover" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-cover"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-cover"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('学阶')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-period_id" data-rule="required" data-source="period/index" data-field="periodName" data-primary-key="period" class="form-control selectpage" name="row[period_id]" type="text" value="{$row.period_id|htmlentities}">
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Subject_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-subject_id" data-rule="required" data-source="subject/index" class="form-control selectpage" name="row[subject_id]" type="text" value="{$row.subject_id|htmlentities}">
        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('年级')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-grade_id" data-rule="required" data-source="grade/index" data-field="gradeName" data-primary-key="grade" class="form-control selectpage" name="row[grade_id]" type="text" value="{$row.grade_id|htmlentities}">
        </div>
    </div>
 <!--    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Period')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-period" class="form-control" name="row[period]" type="number" value="{$row.period|htmlentities}">
        </div>
    </div> -->
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('学阶')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-periodName" class="form-control " rows="5" name="row[periodName]" cols="50">{$row.periodName|htmlentities}</textarea>
        </div>
    </div> -->
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Grade')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-grade" class="form-control" name="row[grade]" type="number" value="{$row.grade|htmlentities}">
        </div>
    </div> -->
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('年级')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-gradeName" class="form-control " rows="5" name="row[gradeName]" cols="50">{$row.gradeName|htmlentities}</textarea>
        </div>
    </div> -->
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Bookintro')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-bookIntro" class="form-control " rows="5" name="row[bookIntro]" cols="50">{$row.bookIntro|htmlentities}</textarea>
        </div>
    </div> -->
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Subjectid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-subjectId" class="form-control" name="row[subjectId]" type="number" value="{$row.subjectId|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Subjectname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-subjectName" class="form-control " rows="5" name="row[subjectName]" cols="50">{$row.subjectName|htmlentities}</textarea>
        </div>
    </div> -->
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Isfree')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-isFree" class="form-control" name="row[isFree]" type="number" value="{$row.isFree|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Required')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-required" class="form-control" name="row[required]" type="number" value="{$row.required|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Serverid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-serverId" class="form-control" name="row[serverId]" type="number" value="{$row.serverId|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Expire_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-expire_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[expire_time]" type="text" value="{:$row.expire_time?datetime($row.expire_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Isexpire')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-isExpire" class="form-control" name="row[isExpire]" type="number" value="{$row.isExpire|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Book_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-book_price" class="form-control" name="row[book_price]" type="number" value="{$row.book_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Packageinfo')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-packageinfo" class="form-control " rows="5" name="row[packageinfo]" cols="50">{$row.packageinfo|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-create_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[create_time]" type="text" value="{:$row.create_time?datetime($row.create_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-description" class="form-control " rows="5" name="row[description]" cols="50">{$row.description|htmlentities}</textarea>
        </div>
    </div> -->
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Period_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-period_id" data-rule="required" data-source="period/index" class="form-control selectpage" name="row[period_id]" type="text" value="{$row.period_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Subject_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-subject_id" data-rule="required" data-source="subject/index" class="form-control selectpage" name="row[subject_id]" type="text" value="{$row.subject_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Grade_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-grade_id" data-rule="required" data-source="grade/index" class="form-control selectpage" name="row[grade_id]" type="text" value="{$row.grade_id|htmlentities}">
        </div>
    </div> -->
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-id" class="form-control" name="row[id]" type="number" value="{$row.id|htmlentities}">
        </div>
    </div> -->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
